package com.example.baseproject.network

import com.example.logindemo2.model.Constant.LOGIN_API
import com.example.logindemo2.model.Constant.PWD_KEY
import com.example.logindemo2.model.Constant.TEST_API
import com.example.logindemo2.model.Constant.USERNAME_KEY
import com.example.logindemo2.model.LoginResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface AccountService {

    @GET(TEST_API)
    fun getData(): Call<LoginResponse>

    @POST(LOGIN_API)
    fun login(
        @Query(USERNAME_KEY) username: String,
        @Query(PWD_KEY) password: String
    ): Call<LoginResponse>
}